
$(".button").click(function(){
    var name=$("#name").val();
    var pwd=$("#pwd").val();
     $.ajax({
        type:"get",
        url:"index.php?m=Admin&c=admin&a=checklogin",
        data:{name:name,pwd:pwd},
        success:function(res){
            if(res==true){
            alert('登录成功');window.location.href="index.php?m=Admin&c=new&a=newlist";
            }else{
            alert("登录失败");
            }
        }
       });                   
    });

